<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Gadget Template Settings</title>
    <style>
        body
        { 
            width: 350px;
            height: 75px;
            font-family: Tahoma;
            font-size: 10px;
        }
    </style>
    <script>
        System.Gadget.onSettingsClosing = settingsClosing;
        function loadSettings()
        {
            // use the System.Gadget.Settings.read() function to read current settings
            // and set default values;
            // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sidebar/sidebar/reference/objects/systemgadgetsettings/read.asp
        }
    	
        function settingsClosing(event)
        {
            if (event.closeAction == event.Action.commit)
            {
                // use the System.Gadget.Settings.write() function to write settings
                // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sidebar/sidebar/reference/objects/systemgadgetsettings/write.asp
                System.Gadget.Settings.write(
            "directorioBusqueda", selectDominio.value);
            }
        }
    </script>
</head>

<body onload="loadSettings()">
    Seleccione el directorio para hacer busqueda;
    <select id='selectDominio'>
    <option id='1' value='directoriodetizayuca.com'>Tizayuca</option>
    <option id='2' value='directoriodetulancingo.com'>Tulancingo</option>
    <option id='3' value='directoriodepachuca.com'>Pachuca</option>
    </select>
</body>
</html>